package com.pym.controller;

import com.pym.entity.PymWpxx;
import com.pym.service.PymWpxxService;
import com.pym.service.impl.PymWpxxServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 涉案财物物品表(PymWpxx)表控制层
 *
 * @author makejava
 * @since 2021-08-20 19:40:05
 */
@RestController
@RequestMapping("/pymWpxx")
public class PymWpxxController {
    /**
     * 服务对象
     */
    @Autowired
    private PymWpxxServiceImpl pymWpxxService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PymWpxx selectOne(String id) {
        return this.pymWpxxService.queryById(id);
    }

}
